package edu.xhu.api.user.fallback;

import edu.xhu.api.user.UserClient;
import edu.xhu.model.biliuser.dtos.UserInfosDto;
import edu.xhu.model.common.dtos.ResponseResult;
import edu.xhu.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

@Component
public class UserClientFallback implements UserClient {
    /**
     * 获取用户的全部信息
     *
     * @param commentUserInfosDto
     * @return
     */
    @Override
    public ResponseResult<?> queryAllUserInfoByIds(UserInfosDto commentUserInfosDto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR, "获取用户们信息失败");
    }

    @Override
    public ResponseResult<?> queryUserInfoById(Long userId) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR, "获取用户信息失败");
    }

    @Override
    public ResponseResult<?> getRatioDataByUserId(Long userId) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR, "获取响应比信息失败");
    }

    @Override
    public ResponseResult<?> getOneUserById(Long userId) {
        return ResponseResult.errorResult(AppHttpCodeEnum.DATA_NOT_EXIST);
    }
}
